#ifndef __NETMSGCENTER_H__
#define __NETMSGCENTER_H__
#include "socket.h"
#include "handler/accounthandler.h"
#include "handler/chathandler.h"
#include "handler/fighthandler.h"
#include "handler/matchhandler.h"
#include "proto/message.pb.h"
#include <memory>

class NetMsgCenter
{
public:
    typedef std::shared_ptr<NetMsgCenter> ptr;
    NetMsgCenter();
    void dispacter(Player::ptr& player, proto::NetMsg& netMsg);
private:
    AccountHandler::ptr accountHandler;
    ChatHandler::ptr chatHandler;
    FightHandler::ptr fightHandler;
    MatchHandler::ptr matchHandler;
};

#endif // !__NETMSGCENTER_H__